<?php
/*
 * @Author: your name
 * @Date: 2020-06-05 17:32:41
 * @LastEditTime: 2020-10-29 13:46:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /special/application/common/model/HostGuisePort.php
 */

namespace app\common\model;

use think\Model;

class HostGuisePort extends Model 
{
    /**
     * @name: wundows 默认端口
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-11-07 15:11:09
     */
    public function defaultConfig ($os)
    {
        $return = [
            1 => [//WINDOWS
                'standard' => 3389 ,
                'standard' => 135 ,
                'sql' => 1521,
                'middleware' =>  9060
            ],
            2 => [//LINUX
                'standard' => 22 ,
                'standard' => 135 ,
                'sql' => 3306,
                'middleware' =>  1098
            ]
        ];

        return isset($return[$os]) ? $return[$os] : [] ;
    }
}